package com.cmcc.groupcontacts.firewall.activity.strategy;

import android.view.Window;

import com.cmcc.groupcontacts.firewall.activity.BaseActivity;
import com.yinhai.activity.R;

/**
 * 用于Window中配置的标题栏显示策略
 * 
 * @author 
 * 
 */
public class WindowTitleStrategy extends BaseHasTitleStrategy {
	public WindowTitleStrategy(BaseActivity act) {
		super(act);
	}
	
	@Override
	public void setWindowFeature(int layoutResID) {
		act.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
		act.getWindow().setContentView(layoutResID);
		act.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.common_title);
	}
}
